$().ready(function() {

	// validate login form on keyup and submit
	$("#loginFrm").validate({
		rules: {
			username: {
				required: true,
				minlength: 2
			},
			password: {
				required: true			
			}
		},
		
		messages: {
			username: {
				required: "Completati username-ul",
				minlength: "Username-ul dvs trebuie sa contina cel putin 2 caractere"
			},
			password: {
				required: "Completati parola"
			}
		}
	});
});
